﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication13
{
    class Program
    {
        static void Main(string[] args)
        {
            string str = "Kostya,Irina,Yan,Roman,Alex,Alexey,Elena,Timur";
            string[] array = str.Split(',');
            string a = "";
            for (int i = 0; i < (array.Length/2); i++)
            {
                a = array[i];
                array[i] = array[array.Length - i - 1];
                array[array.Length - i - 1] = a;
            }
            string str2 = string.Join(",", array);
            Console.WriteLine(str2);
            Console.ReadLine();
        }
      
    }
}
